//
//  String+Emoji.swift
//  emoticonKeyboard
//
//  Created by 王洪运 on 15/11/29.
//  Copyright © 2015年 王洪运. All rights reserved.
//

import UIKit

extension String {
    var emoji: String {
        let scanner = NSScanner(string: self)
        var value: UInt32 = 0
        scanner.scanHexInt(&value)
        return String(Character(UnicodeScalar(value)))
    }
}
